#include <ledParamTables.h>
/* Efficiency is 1024 @25C , the value is 990*1024/1000 when efficiency is 99.0% */ 
static const TempParams_t TEMP_CURVE_TABLE_RED[TEMP_CMP_NUM_MAX] = 
{
    /*T(1C) efficiency deltaV(mV) x(%), y(%) */
/*0*/{1136U,39,1020U,1031U},
/*2*/{1123U,38,1020U,1030U},
/*4*/{1110U,36,1021U,1029U},
/*6*/{1096U,32,1021U,1028U},
/*8*/{1084U,30,1022U,1027U},
/*10*/{1069U,28,1022U,1026U},
/*12*/{1069U,23,1022U,1026U},
/*14*/{1070U,14,1023U,1026U},
/*16*/{1046U,13,1023U,1025U},
/*18*/{1040U,11,1023U,1025U},
/*20*/{1035U,11,1023U,1024U},
/*22*/{1030U,10,1023U,1024U},
/*24*/{1024U,0,1024U,1024U},
/*26*/{1008U,-3,1024U,1023U},
/*28*/{1001U,-5,1024U,1023U},
/*30*/{999U,-6,1024U,1022U},
/*32*/{979U,-10,1024U,1021U},
/*34*/{946U,-14,1025U,1020U},
/*36*/{929U,-16,1025U,1019U},
/*38*/{911U,-20,1025U,1019U},
/*40*/{894U,-23,1026U,1018U},
/*42*/{877U,-24,1026U,1018U},
/*44*/{872U,-26,1026U,1018U},
/*46*/{869U,-31,1026U,1017U},
/*48*/{867U,-34,1026U,1017U},
/*50*/{853U,-36,1026U,1016U},
/*52*/{843U,-39,1026U,1016U},
/*54*/{827U,-42,1027U,1016U},
/*56*/{817U,-43,1027U,1015U},
/*58*/{805U,-46,1027U,1015U},
/*60*/{798U,-48,1027U,1016U},
/*62*/{789U,-53,1027U,1014U},
/*64*/{760U,-55,1027U,1013U},
/*66*/{744U,-59,1028U,1013U},
/*68*/{716U,-61,1028U,1012U},
/*70*/{711U,-63,1028U,1012U},
/*72*/{709U,-66,1028U,1012U},
/*74*/{705U,-70,1028U,1012U},
/*76*/{692U,-72,1028U,1011U},
/*78*/{678U,-75,1028U,1011U},
/*80*/{660U,-77,1028U,1010U},
/*82*/{649U,-80,1029U,1010U},
/*84*/{646U,-83,1029U,1010U},
/*86*/{646U,-84,1029U,1010U},
/*88*/{640U,-88,1029U,1010U},
/*90*/{634U,-92,1029U,1010U},
/*92*/{629U,-94,1029U,1009U},
/*94*/{623U,-97,1030U,1009U},
/*96*/{617U,-99,1030U,1009U},
/*98*/{612U,-102,1030U,1008U},
/*100*/{606U,-105,1031U,1008U},
/*102*/{600U,-108,1031U,1008U},
/*104*/{595U,-111,1031U,1007U},
/*106*/{589U,-114,1032U,1007U},
/*108*/{583U,-117,1032U,1006U},
/*110*/{577U,-119,1033U,1006U},
/*112*/{572U,-122,1033U,1006U},
/*114*/{566U,-124,1033U,1005U},
/*116*/{560U,-128,1033U,1005U},
/*118*/{555U,-131,1034U,1005U},
/*120*/{549U,-134,1034U,1002U},
};

static const TempParams_t TEMP_CURVE_TABLE_GREEN[TEMP_CMP_NUM_MAX] = 
{
    /*T(1C) efficiency deltaV(mV) x(%), y(%) */
/*0*/{1056U,34,989U,1029U},
/*2*/{1053U,28,994U,1029U},
/*4*/{1050U,23,998U,1028U},
/*6*/{1046U,20,1002U,1028U},
/*8*/{1043U,19,1006U,1027U},
/*10*/{1038U,19,1009U,1026U},
/*12*/{1036U,15,1011U,1026U},
/*14*/{1033U,10,1014U,1026U},
/*16*/{1031U,9,1015U,1025U},
/*18*/{1029U,8,1017U,1025U},
/*20*/{1027U,8,1019U,1024U},
/*22*/{1025U,6,1021U,1024U},
/*24*/{1024U,0,1024U,1024U},
/*26*/{1019U,-2,1026U,1023U},
/*28*/{1017U,-4,1028U,1023U},
/*30*/{1015U,-7,1030U,1022U},
/*32*/{1008U,-11,1039U,1021U},
/*34*/{1005U,-12,1045U,1021U},
/*36*/{999U,-16,1052U,1019U},
/*38*/{998U,-17,1055U,1019U},
/*40*/{997U,-19,1058U,1018U},
/*42*/{995U,-19,1059U,1018U},
/*44*/{993U,-21,1060U,1017U},
/*46*/{988U,-26,1065U,1017U},
/*48*/{982U,-28,1070U,1016U},
/*50*/{977U,-29,1071U,1015U},
/*52*/{971U,-32,1076U,1015U},
/*54*/{971U,-34,1068U,1014U},
/*56*/{971U,-36,1083U,1013U},
/*58*/{973U,-38,1086U,1012U},
/*60*/{974U,-39,1089U,1012U},
/*62*/{966U,-40,1092U,1012U},
/*64*/{957U,-42,1099U,1010U},
/*66*/{951U,-44,1106U,1009U},
/*68*/{944U,-47,1113U,1007U},
/*70*/{941U,-50,1117U,1006U},
/*72*/{938U,-52,1120U,1006U},
/*74*/{935U,-53,1121U,1006U},
/*76*/{934U,-55,1124U,1005U},
/*78*/{931U,-57,1126U,1005U},
/*80*/{923U,-59,1135U,1003U},
/*82*/{921U,-61,1138U,1002U},
/*84*/{918U,-63,1140U,1002U},
/*86*/{917U,-64,1142U,1001U},
/*88*/{915U,-66,1143U,1001U},
/*90*/{913U,-69,1147U,1000U},
/*92*/{912U,-71,1151U,999U},
/*94*/{910U,-72,1155U,999U},
/*96*/{909U,-74,1158U,998U},
/*98*/{907U,-76,1162U,997U},
/*100*/{906U,-78,1166U,997U},
/*102*/{904U,-80,1170U,996U},
/*104*/{902U,-81,1174U,995U},
/*106*/{901U,-83,1178U,994U},
/*108*/{899U,-85,1181U,994U},
/*110*/{898U,-87,1185U,993U},
/*112*/{896U,-90,1189U,992U},
/*114*/{895U,-91,1193U,992U},
/*116*/{893U,-92,1197U,991U},
/*118*/{892U,-94,1201U,990U},
/*120*/{890U,-97,1202U,990U},
};


static const TempParams_t TEMP_CURVE_TABLE_BLUE[TEMP_CMP_NUM_MAX] = 
{
    /*T(1C) efficiency deltaV(mV) x(%), y(%) */
/*0*/{985U,39,1032U,983U},
/*2*/{990U,32,1031U,987U},
/*4*/{1007U,29,1030U,990U},
/*6*/{1007U,25,1029U,994U},
/*8*/{1007U,23,1028U,998U},
/*10*/{1006U,23,1027U,998U},
/*12*/{1009U,20,1026U,1001U},
/*14*/{1011U,14,1026U,1005U},
/*16*/{1014U,10,1026U,1009U},
/*18*/{1016U,7,1025U,1012U},
/*20*/{1019U,5,1025U,1016U},
/*22*/{1021U,8,1024U,1020U},
/*24*/{1024U,0,1024U,1024U},
/*26*/{1026U,-5,1023U,1027U},
/*28*/{1028U,-8,1022U,1027U},
/*30*/{1033U,-10,1022U,1027U},
/*32*/{1043U,-13,1019U,1042U},
/*34*/{1054U,-18,1019U,1049U},
/*36*/{1062U,-20,1017U,1053U},
/*38*/{1065U,-21,1017U,1057U},
/*40*/{1068U,-25,1016U,1060U},
/*42*/{1070U,-30,1015U,1064U},
/*44*/{1073U,-34,1015U,1068U},
/*46*/{1075U,-37,1014U,1071U},
/*48*/{1077U,-39,1013U,1075U},
/*50*/{1084U,-42,1013U,1079U},
/*52*/{1091U,-45,1013U,1082U},
/*54*/{1094U,-48,1012U,1086U},
/*56*/{1095U,-52,1011U,1104U},
/*58*/{1098U,-55,1011U,1108U},
/*60*/{1100U,-56,1011U,1112U},
/*62*/{1102U,-59,1010U,1115U},
/*64*/{1108U,-63,1009U,1126U},
/*66*/{1114U,-66,1007U,1141U},
/*68*/{1121U,-70,1005U,1152U},
/*70*/{1122U,-72,1005U,1156U},
/*72*/{1124U,-76,1004U,1163U},
/*74*/{1125U,-78,1003U,1167U},
/*76*/{1127U,-80,1003U,1170U},
/*78*/{1128U,-83,1003U,1174U},
/*80*/{1134U,-85,1002U,1185U},
/*82*/{1135U,-88,1001U,1189U},
/*84*/{1137U,-90,1001U,1192U},
/*86*/{1138U,-93,1000U,1200U},
/*88*/{1136U,-96,999U,1203U},
/*90*/{1134U,-98,998U,1207U},
/*92*/{1133U,-101,998U,1211U},
/*94*/{1131U,-105,997U,1214U},
/*96*/{1129U,-108,996U,1222U},
/*98*/{1127U,-110,996U,1225U},
/*100*/{1125U,-113,996U,1229U},
/*102*/{1124U,-115,995U,1233U},
/*104*/{1122U,-117,994U,1236U},
/*106*/{1120U,-120,994U,1240U},
/*108*/{1118U,-123,993U,1244U},
/*110*/{1116U,-126,993U,1247U},
/*112*/{1114U,-128,992U,1251U},
/*114*/{1113U,-131,992U,1258U},
/*116*/{1111U,-133,991U,1262U},
/*118*/{1109U,-135,990U,1266U},
/*120*/{1107U,-139,990U,1269U},
};



TempParams_t const * LP_GetTempTableRed(LedNum_t ledIndex)
{
    return TEMP_CURVE_TABLE_RED;
}

TempParams_t const * LP_GetTempTableGreen(LedNum_t ledIndex)
{
    return TEMP_CURVE_TABLE_GREEN;
}

TempParams_t const * LP_GetTempTableBlue(LedNum_t ledIndex)
{
    return TEMP_CURVE_TABLE_BLUE;
}



/*
const AccurateColorXYY_t calibratedColortable[] = 
{
  {21845, 21845, 100, 255,255,255},
  {X0, Y0, 100, 254,254,255},
};
*/



